﻿using System;
using System.ServiceModel;
using System.Security.Permissions;
using Sinacor.Infra.Service.Security.Services;
using Sinacor.Infra.Service.ExceptionHandling;
using Sinacor.Infra.Common.Exceptions.FaultContracts;

namespace Sinacor.Servico.Infra.Licensing.Service.ServiceContract
{
    /// <summary>
    /// Contrato de servico ILicensing
    /// </summary>
    [ExceptionShielding]
    [ServiceContract(Namespace = "http://www.bovespa.com.br/Sinacor.Servico.Infra.Licensing.Service.ServiceContract", Name = "ILicensing", SessionMode = SessionMode.Allowed)]
    public interface ILicensing
    {
        [OperationLog]
        [FaultContract(typeof(InvalidSessionFault))]
        [FaultContract(typeof(GeneralFault))]
        [FaultContract(typeof(BusinessFault))]
        [FaultContract(typeof(ValidationFault))]
        [FaultContract(typeof(LicensingFault))]
        [FaultContract(typeof(AccessIsDeniedFault))] 
        [OperationContract(IsTerminating = false, IsInitiating = true, IsOneWay = false, Action = "GetLincensing")]
        Sinacor.Servico.Infra.Licensing.Service.DataContract.LicenseDC GetLincensing();
    }
}
